<div class="pagination">
        <ul>
        <?php if($PAGER['cur_page']>1) ?>
          <li class="<?php if($PAGER['cur_page']==1){ ?>disabled<?php } ?>"><a href="<?php echo str_replace('{*}', 1, $PAGER['url']) ?>">&laquo;</a></li>
          <?php if($PAGER['cur_page']> 3){ ?>
          <li ><a href="<?php echo str_replace('{*}', 1, $PAGER['url']) ?>">1</a></li>
          <li class="disabled"><a href="">...</a></li>
          <?php } ?>
          <?php if($PAGER['cur_page'] > 2){ ?>
          <li><a href="<?php echo str_replace('{*}', $PAGER['cur_page'] - 2, $PAGER['url']) ?>"><?php echo $PAGER['cur_page'] - 2 ?></a></li>
          <?php } ?>
          <?php if($PAGER['cur_page'] > 1){ ?>
          <li><a href="<?php echo str_replace('{*}', $PAGER['cur_page'] - 1, $PAGER['url']) ?>"><?php echo $PAGER['cur_page'] - 1 ?></a></li>
          <?php } ?>
          <li class="active"><a href=""><?php echo $PAGER['cur_page']; ?></a></li>

          <?php if($PAGER['total_page'] - $PAGER['cur_page'] >= 1){ ?>
          <li><a href="<?php echo str_replace('{*}', $PAGER['cur_page'] + 1, $PAGER['url']) ?>"><?php echo $PAGER['cur_page'] + 1 ?></a></li>
          <?php } ?>
          <?php if($PAGER['total_page'] - $PAGER['cur_page'] >= 2){ ?>
          <li><a href="<?php echo str_replace('{*}', $PAGER['cur_page'] + 2, $PAGER['url']) ?>"><?php echo $PAGER['cur_page'] + 2 ?></a></li>
          <?php } ?>
		<?php if($PAGER['total_page'] > $PAGER['cur_page']){ ?>
          <li><a href="<?php echo str_replace('{*}', $PAGER['cur_page'] + 1, $PAGER['url']) ?>">&raquo;</a></li>
          <?php } ?>
        </ul>
      </div>